<template>
  <div id="app">
    <nav>
      <router-link to="/list">商品列表</router-link> |
      <router-link to="/cart">购物车</router-link>
    </nav>
    <router-view/>
  </div>
</template>

<style scoped="scoped">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
*{
	margin: 0;
	padding: 0;
}
nav {
  /* padding: 30px; */
 /* border: 1px solid red; */
  position: fixed;
  bottom: 0px;
  left:0px;
  right: 0px;
  z-index: 1;
  display: flex;
  background-color: aliceblue;
  height: 50px;
  line-height: 50px;
 /* box-sizing: border-box; */
/*  width: 100%; */
}

nav a {
  font-weight: bold;
  color: #2c3e50;
  flex: 1;
  text-decoration: none;
}

nav a.router-link-exact-active {
  color: #42b983;
}
</style>
